import time

import requests
from bs4 import BeautifulSoup

page = 1
url = f'https://www.toopic.cn/dnbz/?&page={page}'
headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36'
}
res = requests.get(url=url, headers=headers)
soup = BeautifulSoup(res.text, "lxml")
images = soup.select(".pic-list li .bd")
for image in images:
    preview_image = image.select_one("a img")
    print(preview_image)
    time.sleep(1)
